package com.hdax.dm.api.scheduler;

import com.hdax.dm.entity.scheduler.DmSchedulerSeat;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;
import java.util.Map;

@Component
public interface SeatControllerAPI {

    @PostMapping(path = "/rest/scheduler/detail/{scheduleId}/{x}/{y}")
    DmSchedulerSeat seatDetail(@PathVariable("scheduleId")Long scheduleId,
                               @PathVariable("x") Long x,
                               @PathVariable("y") Long y);

    //修改座位和订单关联信息
    @PostMapping(path = "/rest/scheduler/seat/change")
    boolean changeSeatByOrder(@RequestBody List<DmSchedulerSeat> params);

}
